package com.ihrm.company.dao;


import com.ihrm.domain.company.Department;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DepartmentDao {
    Integer addDept(Department department);

    Integer update(Department department);

    Department select(String id);

    Integer delete(String id);

    List<Department> findAll(String companyId);

    Department findByCondition(String code);
}
